package com.company.management.mapper.reward;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.management.domain.reward.Rewards;
import com.company.management.domain.reward.bo.RewardsBO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface RewardsMapper extends BaseMapper<Rewards> {

    Rewards findByRewardId(Integer rewardId);

    List<RewardsBO> findByUserId(@Param("startTime") Date startTime,
                                 @Param("endTime") Date endTime,
                                 @Param("userIds") List<Integer> userIds);

    byte[] findByNote(Integer rewardId);
}